package com.bwda.dsrs.filecenter.controller;

import com.bwda.dsrs.base.centerbase.response.ResponseEntity;
import com.bwda.dsrs.filecenter.domain.exception.BusinessServiceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: yangjun
 * @create: 2019-08-08 15:23
 */
@RestController

@RequestMapping("/b/test")
public class AtestController extends BaseController {
    private static final Logger logger = LoggerFactory.getLogger(AtestController.class);


    @RequestMapping(value = "/query", method = {RequestMethod.GET, RequestMethod.POST})
    public ResponseEntity<String> query() throws BusinessServiceException {
        logger.info("-----query start");

        logger.info("-----query end");
        return getSuccessResult("sucess", "query sucess");
    }

//    private void sendEmail() {
//        SimpleMailMessage message = new SimpleMailMessage();
//        message.setFrom("zzc@bwda.net");
//        message.setTo("756427684@qq.com");
//        message.setSubject("主题：简单邮件");
//        message.setText("测试邮件内容");
//
//    }


}